<template>

  <div>1111</div>
  <div>{{ count }}</div>
  <button @click="add">按钮</button>
  <button @click="navigateToHome">路由跳转</button>
</template>

<script setup>
 import { ref } from 'vue';
 import { useRouter } from 'vue-router';
 import {securityNoticeslist} from '@/utils/api.js'
  const count = ref(0)
  const add = () => {
    securityNoticeslist({page: 1,per_page: 20,securityNoticeNo: "222"}).then(res=>{
      console.log(res.data.items);
    })
  
};
const router = useRouter();
const navigateToHome = () => router.push({ name: 'page' })
</script >

<style>

</style>